package cn.lingyangwl.agile.pay.common.manager;

import cn.lingyangwl.agile.pay.common.mapper.PayOrderMapper;
import cn.lingyangwl.agile.pay.model.entity.PayOrder;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Component;

/**
 * @author shenguangyang
 */
@Component
public class PayOrderManager extends ServiceImpl<PayOrderMapper, PayOrder> {
    public PayOrder getByPayOrderNo(String payOrderNo) {
        return this.getOne(PayOrder.lqw().eq(PayOrder::getPayOrderNo, payOrderNo));
    }
}
